package y24.m4;
public class Test3 {
    static class Employee{
        private Integer id;
        private String name;
        private String section;
        private String position;
        private Double salary;

        public void setEmployee(Integer id, String name, String section, String position, Double salary) {
            this.id = id;
            this.name = name;
            this.section = section;
            this.position = position;
            this.salary = salary;
        }

        @Override
        public String toString() {
            return "员工号：" + id + ", 姓名：" + name + ", 部门：" + section + ", 职位：" + position + ", 薪水" + salary;
        }
    }

    public static void main(String[] args) {
        Employee employee = new Employee();
        employee.setEmployee(32,"骆天齐","电子信息工程学院","学生",0.0);
        System.out.println(employee.toString());
    }
}
